package org.kisekiproject.pages.navigation
{
	import flash.display.MovieClip;
	import flash.events.Event;
	import flash.events.MouseEvent;
	
	import org.kisekiproject.components.ui.StateButton;

	public class NavigationBase extends MovieClip
	{
		public var nextButton:StateButton;
		public var prevButton:StateButton;

		public function NavigationBase()
		{
			nextButton.addEventListener(MouseEvent.CLICK,onNextClick);
			prevButton.addEventListener(MouseEvent.CLICK,onPrevClick);
		}
		
		protected function onPrevClick(event:MouseEvent):void
		{
			dispatchEvent(new Event("prev"));
		}
		
		protected function onNextClick(event:MouseEvent):void
		{
			dispatchEvent(new Event("next"));
		}
	}
}